<script setup lang="ts">
import { ElButton } from 'element-plus'

defineProps<{ code: string, message: string }>()
</script>

<template>
  <div
    class="m-40 h-full flex flex-col flex-justify-center flex-items-center"
  >
    <div class="text-20">
      {{ code }}
    </div>
    <div class="mt-5 text-5 text-secondary">
      {{ message }}
    </div>
    <ElButton
      class="mt-5"
      size="large"
      @click="$router.push('/')"
    >
      回到首页
    </ElButton>
  </div>
</template>
